package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderDispatchWorker;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderDispatchWorker)表服务接口
 *
 * @author zhouj
 * @since 2021-09-03 16:09:53
 */
public interface OrderDispatchWorkerService extends CommonService {

    int insert(SessionFactory factory, OrderDispatchWorker orderDispatchWorker);

    int insertBatch(SessionFactory factory, List<OrderDispatchWorker> orderDispatchWorker);

    int update(SessionFactory factory, OrderDispatchWorker orderDispatchWorker);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByDispatchId(SessionFactory factory, String dispatchId);

    int deleteByDispatchIdOrderId(SessionFactory factory, String dispatchId, String orderId);

    int deleteByTeamId(SessionFactory factory, String teamId);

    OrderDispatchWorker queryById(SessionFactory factory, String id);

    List<OrderDispatchWorker> queryByOrderId(SessionFactory factory, String orderId);

    PageInfo queryList(SessionFactory factory, OrderDispatchWorker orderDispatchWorker, BaseQueryBean pageBean);

}
